{"version":3,"file":"editor_panel.map.js","names":["BX","namespace","proxy","Landing","Utils","getSelectedElement","UI","Panel","EditorPanel","BaseButtonPanel","apply","this","arguments","layout","classList","add","position","currentElement","outOfFrame","onKeydown","bind","onTabDown","onScroll","instance","getInstance","init","scrollHandler","target","makeDraggable","editor","dragButton","Button","EditorAction","html","attrs","title","Loc","getMessage","onbxdrag","onDrag","onbxdragstop","onDragEnd","jsDD","registerObject","prependButton","offsetCalculates","offsetLeft","offsetTop","x","y","pos","current_node","Math","max","abs","left","top","closest","PageObject","getEditorWindow","scrollY","DOM","write","remove","style","registerBaseActions","addButton","onClick","adjustButtonsState","CreateLink","rights","Env","getOptions","includes","CreatePage","ColorAction","text","TextBackgroundAction","CreateTable","PasteTable","lastPosition","adjustAbsolutePosition","node","force","nodeRect","getBoundingClientRect","width","rect","height","windowScope","window","parent","bodyContent","contains","pageYOffset","Main","isControlsExternal","bottom","innerHeight","innerWidth","hideButtonsPopups","appendToBody","document","body","appendChild","mouseTarget","onMousedown","event","preventClick","onMouseUp","preventDefault","stopPropagation","closePopup","button","popup","close","menu","buttons","forEach","additionalButtons","Tool","ColorPicker","hideAll","prototype","constructor","__proto__","show","element","isTable","hideButtons","showBaseButtons","length","hideBaseButtons","hideAllBaseButtons","setContextDocument","ownerDocument","insertAfter","prevSibling","querySelector","isShown","onCustomEvent","contextDocument","addEventListener","setTimeout","call","adjustPosition","onShow","adjustButtonsContextDocument","contextWindow","passive","err","hide","removeEventListener","onHide","key","nodeName","shiftKey","code","execCommand","metaKey","range","getSelection","getRangeAt","br","create","deleteContents","insertNode","newRange","createRange","setStartAfter","collapse","sel","removeAllRanges","addRange","TAB_COUNT","isAllowedTab","parentNode","focusNode","tagName","countUlTag","parentsNodeArr","allowedTagName","indexOf","push","previousElement","previousSibling","nodeType","countBlockquote","firstChild","i","childNodes","nextSibling","getAction","value","get","requestAnimationFrame","format","getFormat","bold","italic","underline","strike","align","getComputedStyle","getPropertyValue","match","isFixed","dataset","id","hidden","cop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